# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!

#
# Modified by Mr Green for Project_Vole (mrgreen@archbang.org)
#

# Variables
# Mod4 = Super (Windows) key
set $mod Mod4 

# To stop timer icon when starting applications
set $ei --no-startup-id

# Font
font pango:DejaVu Sans 9

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# kill focused window
bindsym $mod+q kill

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+Shift+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
# bindsym $mod+w layout tabbed
# bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# resize window (you can also use the mouse for that)
mode "resize" {
        # Arrow Keys to resize
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"

# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart

#
# Keybinds and setup for gaps
#
gaps inner 3
gaps outer 3

bindsym $mod+plus  gaps inner current plus 5
bindsym $mod+minus gaps inner current minus 5
bindsym $mod+n     gaps inner current set 0

bindsym $mod+Shift+plus  gaps inner all plus 5
bindsym $mod+Shift+minus gaps inner all minus 5
bindsym $mod+Shift+n     gaps inner all set 0

# Smart gaps if you have one window or spilt container on a workspace
smart_gaps on

# Theme for Project_Vole i3
# colour of                 border  backg   text    indica  child_border
client.focused              #798A07 #EEEEEE #d8dee8 #798A07 #798A07
client.focused_inactive     #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.unfocused            #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.urgent               #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder          #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background           #2f343f

# Set border size
default_border pixel 3

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    colors {
        background #040506
        statusline #d8dee8 # text colour
        separator #4b5262

        # colors                border  backgro text
        focused_workspace       #798A07 #798A07 #d8dee8
        active_workspace        #d8dee8 #040506 #222222
        inactive_workspace      #2f343f #040506 #d8dee8
        urgent_workspace        #2f343f #2f343f #d8dee8
    }
       status_command i3status 
}

#
# Project_Vole keyboard short-cuts!
#

# Start rofi launcher
bindsym $mod+d exec $ei rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -column 3 -font 'Sans 10'

# Terminal
bindsym $mod+t exec $ei lxterminal
bindsym $mod+Return exec $ei lxterminal

# Use Alt key instead of Super...
bindsym Mod1+m exec $ei altmod

# Browser and move to workspace 3
bindsym $mod+w exec $ei firefox https://archbang.org 
assign [class="firefox"] 3

# File Manager
bindsym $mod+f exec $ei thunar 

# Editor
bindsym $mod+e exec $ei l3afpad

# Abinstall
bindsym $mod+i exec $ei lxterminal -e "sudo /home/ablive/AB_Scripts/abinstall"

# Show i3 key binds in rofi change for new settings script
bindsym $mod+b exec $ei i3-binds

# Exit Menu change for new settings script
#bindsym $mod+Shift+x exec $ei exitmenu

# Display Guide in editor
bindsym $mod+g exec $ei l3afpad /home/ablive/Desktop/Guide

#
# Autostart
#
# Wallpaper
exec $ei feh --bg-scale ~/Backgrounds/vole.png
#exec_always $ei nitrogen --restore

# Network Manager Applet
exec $ei nm-applet 

# Battery icon
exec $ei cbatticon

# Volume!
#exec $ei pasystray 

# Desktop Keymap layout.... 
exec $ei setxkbmap -layout "us"  

# Polkit
exec $ei lxpolkit

# Turn off touchpad
#exec $ei /usr/bin/synclient TouchpadOff=1 

# Start dynamic window layout python script
#exec $ei /home/ablive/AB_Scripts/alternating_layouts.py

